package cn.itsource.article.mapper;

import cn.itsource.article.domain.Article;
import cn.itsource.article.query.ArticleQuery;
import cn.itsource.article.vo.ArticleVo;
import cn.itsource.param.domain.Like;

import java.util.List;

/**
* @author huawei
* @description 针对表【tb_article(文章信息表)】的数据库操作Mapper
* @createDate 2024-06-05 19:28:32
* @Entity cn.itsource.domain.Article
*/
public interface ArticleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);

    List<Article> getAll(ArticleQuery articleQuery);

    void deleteAll(List<Article> a);

    //对文章类型分组统计
    List<ArticleVo> group();

    //文章归档
    List<ArticleVo> placeOnFile();


    List<Article> aboutArticleId(Long articleId);

    /**
     * 修改点赞数
     */
    void like(Like like);

    void findId(Long articleId);


    List<Article> drawColumnChart();


}
